<?php
$this->headTitle($this->translator('notify_title'));
?>

<div class="t_news_tag notify">
    <h1><?php echo $this->translator('notify_title'); ?></h1>
    <hr />
    <?php if($this->notify): ?>
        <?php foreach ($this->notify as $row) : ?>
        <div class="notify-item ">
            <div class="item <?php echo $row->notify ?>">
                <h3>
                <?php
                    $arrParamEnterprise = array(
                        'enterprise_id' => $row->enterprise_id,
                        'enterprise_name' => Tomato_Utility_String::removeSign($row->company_name_en, '-', true)
                    );
                ?>
                <a href="<?php echo $this->url($arrParamEnterprise, 'bizprofile_enterprise_index'); ?>">
                    <?php echo $this->lang == "en" ? $row->company_name_en : $row->company_name_vn; ?>
                </a>
                </h3>
                <div>
                    <div style="float:left;">
                        <b>email</b> : <?php echo $row->contact_email ?> &nbsp; <b>tel</b> : <?php echo $row->contact_tel ?>
                    </div>
                    <div style="float:right;">
                        <?php if ($row->partner_status == "pending"): ?>
                            <form method="post" action="<?php echo $this->url(array(), 'bizprofile_partner_confirm_partner'); ?>" id="addPartner">
                                <?php echo $this->tokenElement; ?>
                                <input type="hidden" name="enterprise_id" value="<?php echo $row->enterprise_id; ?>"/>
                                <input type="hidden" name="relation_id" value="<?php echo $row->relation_id; ?>"/>
                                <input type="hidden" name="redirect_url" value="<?php echo $this->url(array('enterprise_id'=>$row->enterprise_id), 'bizprofile_enterprise_index'); ?>"/>
                                <button type="submit" class="biz-button"><span><?php echo $this->translator('partner_confirm_partner'); ?></span></button>
                            </form>
                        <?php endif ;?>
                    </div>
                    <div style="clear:both;"></div>
                </div>
            </div>
        </div>
        <?php endforeach; ?>
    <?php endif;?>
</div>
